package com.cy.pet.cart.feign;

import com.cy.pet.common.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @description:
 * @author: LiuXingYu
 * @date: 2021/10/8 10:42
 */
@FeignClient(name = "pet-userservice",contextId = "remoteUserService")
public interface RemoteUserService {
    @PostMapping("/user/login/{username}")
    User getUserByName(@PathVariable("username") String username);
}